package com.dao;

import com.model.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author
 * @Description:
 * @date 2021/4/18 11:11
 */
@Component
public interface ConfigDao {

    List<HomeAppConfigModel> applicationList(@Param("id") Long id);

    HomeAppConfigModel applicationDetail(@Param("id") Long id);

    void applicationAdd(HomeAppConfig config);

    void applicationUpdate(HomeAppConfig config);

    void applicationDelete(@Param("id") Long id);

    List<ArticleInfoConfigModel> advisoryList(@Param("type") Integer type,@Param("id") Long id);

    ArticleInfoConfigModel advisoryDetail(@Param("id") Long id);

    void advisoryAdd(ArticleInfoConfig config);

    void advisoryUpdate(ArticleInfoConfig config);

    void advisoryDelete(@Param("id") Long id);

    List<CarouselModel> carouselList(@Param("id") Long id);

    CarouselModel carouselDetail(@Param("id") Long id);

    void carouselAdd(Carousel carousel);

    void carouselUpdate(Carousel carousel);

    void carouselDelete(@Param("id") Long id);
}
